#ifndef QMLCONTROL_H
#define QMLCONTROL_H

#include <defs/export.h>
#include <defs/global.h>

#include "control.h"
#include <QtCore>

class QDeclarativeView;
O_PRIVATE_DECLARE(QmlControl);
class QmlControl : public Control {
    Q_OBJECT
public:
	QmlControl(QmlControl *parent = 0);
	virtual ~QmlControl();

	bool load(const QString& className, const QUrl& url);

	QObject* object()const;
	QDeclarativeView* view()const;

protected:
	void showEvent ( QShowEvent * event );
	void hideEvent ( QHideEvent * event );
private:
    O_PRIVATE_DECLARE_MEMBER(QmlControl);
};

#endif // QMLCONTROL_H

